fixed optional debug output in reports