added checkSetting, and changed header for scripts