dumb error handling in parser