added get token method