complete some bugs in the parsers