use json strings to easy store and parse back full objects in localStorage
migrate old code to new local storage style