hierarchy init
hierarchy now work.
TODO: need purge cache first
need no purge. some tricky stuff remains...