added simple connection manager