refactoring setup.bat