parameterized mha failover scripts