set to batch mode