added some checks for cache and added skip for api failures