update config and index