adding the config and index