refactored peerQuery to pass the full server response object back to the application developer