support for multiple subnodes levels