log replicate add command
cleanups