edit config and index file