cleanup code regarding scripting natives