add/fix sftp functionality