added opentok connect and routing hook