caching if offline fixed