changed SliceExtractor to use whole component tree