api changes for agg