add index and config