add method to get access token