calls to and framework for agg_copy and group_and_update