first stab at autosaving local storage