update config and index file