handle parse errors in demo