bug fixe for target int .bat
build fixe + bug fixe + test for new batch gen