added method to set token manually