rt_find -> get_resourcetype optimization