tidier batch file creation