reorg: aggregation framework