debug output examples, fixes