added upgrade_config(), used to upgrade from shell to ini format