gen_proto.sh fixed for new layout