implemented control_socket