get_token() almost working