localstorage adapter