transmit thread stuff