index_dir not exist, create one