batch mode