initial code for local storage setup and passing