added failover to server batch proxy json api