further work on accum_aggregate porting