add support for specifying eauth, increase default timeout
handle failed authentication properly