updated parser to send error if commands not recognized