added support for using an access token