mimic classic localstorage