fix issue in sftp & ftp closes #174