add convenient debug facility