improve getSettingFile