refactoring configuration