modified:   cmparser.py -- fixed error checking