changed $zk_port to $port for simplicity