modify ProtocolBufSerializer.cs implementation.