started reworking bidi
some fixes wrt bidi [esp. on EMF]