start of caching