added some stuff to recognizer.py