added setting to disable / enable log file