issue #17: added support for debug outputs