adding get token method