start.py needs refactoring