clean up znode def