threaded sending of messages