error check on settings file