fixing the p1 plugin