faster replication, add some logging, replace tdh html stream