change agent extension flag