add methods for iterating over component nodes