working on firebase caching