make sure batch checks for max length, max batch size is 50