add index_sparse and max_slug_length options
remove unreached code