add plumbing output + logging

Fixes #157
Found #158