made output capture smart and configurable; removed warning addition to output when truncating in history