factor out hint updating
connect-on-open disappeared at some point?
custom token regex