debug sanitization