Notes on serializing