fixed logfile checking