scripting.c update