added ensure_index, experimental