change the api to be texgt