fixed up debug messages