move creation of the hierarchical module to the end