replica recovery working