parser in mmp.py... some bugs