replication tests
fixed leaks
log "rev"