issue #20775: moved out xtbatch