add support for rtl / bidi