add support of queryAll method