added native code integration