added debug logging to queryRequest
added request debugging to queryRequest