connections manager added (thread safe connections management)