fail-ish first try at bidi, maybe better second?