added changes to re-authenticate in the case that a "reload" fails