I don't think this signature should change. IMHO ScriptEnvironment should be internal thing to the host and not exposed in the API and passed around.