refactoring indexbuilder intreface