make accumulate context serializable