change external mode api