SFTP : many fixes