changing directory creation to be recursive