refactoring core: cache, configs