adjust examples to new API, add more examples