debugged batch