connection management

Patrz: CMT.