add set/get variable methods in tesseract module