fixing createrootdir