add debugging for sparql query failures