added batch capabilities