added methods getReplicas and getMasters