add support for aggregations