tweaks to ssh script

please merge