added setToken / getToken methods