rework memory persist