update script from old notes, read-through