bugfix: can't add wrapper when function exists in superclass.