add a protobuf serializer to fsm