add xdcr factory