scp, rsync function edits