Added method to retrieve all rootnodes