added listAllQueries