dismantling the main.py