added a connection manager