uncommented stuff in transmit thread to use helper