almost working local storage