make sure to create log directory