moving log file output to before the assert statement, so we can more easily see which file is missing [if a file is missing]
moving log file output to before the assert statement, so we can more easily see which file is missing [if a file is missing]