sanitize for new plugin loader