added interface for custom object sanitization