expandable scripting reworked