made ROOT a batch process