fix dir index create among other things