add batch-mode stack processing