added batch stuff