misc fix for debug messages