trigger errors when API messed up