extract a helper method to another file
include the target port in replication failure messages