fix batch commands