add the crtical step of creating dirs