patch helper method
use batch mode