make single_query expose a hook

we want to be able to inject a block before a query gets fired and
results will be wrapped