extended the Script Template