adding patch to work with secondary replicas