support option dir_index