added client code for score queries