update p2 script