added support for native method