hooked up scripts api