added localstorage adapter and switched to localstorage saving