adjust api usage based on the change of inedge.