refactoring config file