Update config and index