using gist replace of native code