working on issue #1

Lots of debug output