remove redudant creating of directories