bug fixed , move the extra file into outdir correctly