add batch and update doc