part2 moving code from etcd to m_etcd