updated to the new way to call idresolver