moved type lookup from Builder to T