osx event (de)serializer