add index with config