update to use local storage