improve protoparse