working on connection manager