add some logging to the example