updated
added log file check