examples: add diagnostic printout