refactor config file