refactoring, still flapping on the caching ssh status