fixing the file transfer