changes to make rest of features work if tesseract is not set properly