switched to using local storage