update to scripting system