adapt to new CompoundPathObserver api.