batch file weirdness fixes