edit config and index