support internal / external flag in update_plan method