more updates to main.py