change all instances of share_type -> share_proto