make output tokens return string