changes config and index