made some changes to data persister