support for recurse queries