modify the main.cfg