updated examples to work with current library