code clean up. now only puts data in send_queue; the rest is sent immediately.