tokeninput monkey patch.