replaced old script export() method calls with new render() method