use zookeeper register, move config to properties