server cmd as obj with etcd connection loop