add a method to Client to return query url