fixed obtaining access token