running batchmode, ready for merge into refactor_Batchmode