add thread runner for replication to keep mainloop active (testing)