added in a lot of things that will help debug unauthenticated errors