handle parse errors gracefully