implement vpn in native code