changed to use local storage adapter