connection manager implementation