check pp->priv != NULL