more modifications for ssh script