refactor move sync command into etcd