completed first version of persister actor