revised sftp helper