native code cleaning