rewrite FileTransfer