add ini operation functionalities and make changes for config restoring.