configbuilder refactoring