add query_all method on client