adding infusionapierror catch