fixed config loading with log file