output hierarchical MSIs correctly