various local storage fixes