working on the local storage sync