remove bad exception handling and unnecessary sanitization