adds init option for specifying the http request timeout seconds
adds the option to pass a token