general pupose aggregation library