deal with the 401 error