added ssh checking