moved making log dir to SetupLogging