lookup() now takes recordtype as parameter