WIP: first cut version of auto failover