partially fixes #47 per @JavaScriptDude’s suggestion

The debug output here should be left out.