update _config and index