check for parse errors