support for multiple root nodes