better parser error reporting