minor enhancements for debug purposes (issue #312)