handwritten scanner working with gotos