add replica check