general purpose aggregation library