added function to connection manager