Fixed #174: improved pool and api to using zk

what is it for?