gui script api update