updated. added ssh check