adding auth / unauth,
updating factory reset code