refactoring config files