small update to serialization