add pi event