lots of example code updates