add function the multy_connection thread