clean up debug message output