refactor config file.