refactoring configs