wujun's sftp fix