base repository builder