use thread to send large files