building out the caches