handle parse/serialize exceptions