local storage extension extracted out to separate file