fix overzealous deletions of debug messages