checks for batch fikles before running batch