added getToken wrapper