improving parser: command and error messages