improved guard debug output