add cmd mode in index.py