fix version and expiration issue with localstorage