reimplemented all the calc aggregators to operate in a multi-bucket aggregation mode