some modifications
not turning on replication if replication is already running