add register native code