eliminating race in zk initialization