improved parser error reporting