create the connection manager on each connection
added terminal logging