main handler updated in main.py