Failover mainfile