plug, unplug and persistence