adding failover behavior