sketch of how to do local merging of accumulators