move extern func to native/