first draft of acquiring an access token