create the dirs before