add basic replication recovery