add automatic acceleration using native code.