simplify CompoundPathObserver generator