updated bat script