change to send encoded token