added local storage and version