a more defined way to detect p2 fragments