refactored config file