> assert(index<=0x7f && flag<=1); > > this patch is otherwise ok > ill review the whole when you repost it I have attached a new version of the patch that should include all remarks made so far. -- fenrir