fix examples to work on any root context