better exception handling
Aggregation config is available in aggregation result handler