fixed deprecation wrapper