implement more aggressive response comparison and error reporting, and fix a lexing bug