establish communication btwn replica and primary