made refdata lookups happen in their own transaction