use pend instead of deprecated batch2
Release 4.0.0