restructured getting of controlComplexSocket