* fix for new ntype API for blocks * adding two new interfaces
* improve speed * fix bugs * upd reg test