added a query tool