catch parse errors