I suggest move set config to CGit.CPP or the other place. this part code may be shared by the other place.