fixing re-authentication, issue #57