updated to work with the latest etcd and to allow it to be run on a different host than localhost