first pass at debug logging