fix examples, closes #5