adjust log file checking