updated examples to work with latest version