auto-reconnect on ssh failures
fix some spec stuff that made no sense