load settings first