aggregator: add latency query handling