added in some more example and logging