moved cmd.py into main.py