take threads out of controls.py as well