add setting file sunction
Merge branch settingfile-function