refactoring config into separate resolvers