add the localstorage serializer