support for multiple replicas in proxy