added persistance api