added log file creation