update script to match latest torec api