serialization patch