changed some examples to reflect new library changes