implemented the query method in the wrapper to allow accessing otherwise empty query