added TCP adapter and client