added better logging and added onetime replication option
use onetime replication