refactoring Config file