fix batch scripts