Fixing compilation
Failover support (only for sync mode for now)