add mkdir to create log dir