fixed localstorage madness