added protobuf definitions and c outputs