refactoring configuration and NAR builders