fix this.$ for scripting handlers