LDN-2048: adding ability to do post processing of a query