strip debug messages