making restore defaults work
Moving constants to avoid Discouraged Access warning