make file transfer more stable