add basic settings & some minor changes for c settings.