make otmw.bat more generic