adding cache for bad api calls