started testing; move replication to sub-command