got most items out for the new bidi algorithm. now just work on mix