trivial cleanups in connect.cpp