m2
add batch save support