setup caching