updating index and config