new attempt for master/replica connect