added protobuf mode