threading for send