fixing the <missing> function calls since #AssignScriptParameters was deprecated