add method to build cachemanager