added creation of log directory