switch to hocr instead of using API