fix external api