found the magic parametere - make pageseg_mode the same default as the command line tesseract, and then it works the same