updates to allow use of local storage