config file refactoring