collapse 4 separate send calls into 1 in send_chunk