minor changes to main.py