added gen_misc.sh