edit index and config file