added new functions in persistence service