completely rewrote the whole sending method, now every aspect of the file transfer is done manually.