change query response, add some query stats