added local storage adapter for persistence