refactor config files