move OT library into app, more unicode support