fix isLate logic, add verbose log