prepare for deprecating the NativeMethods class