add index to config