add helper for replication