updated new p4 mechanism