tests P3 and fixes