added looping support for n number of standby servers