support for queryAll