add debugging output, revert to simple filtered output