added pid field and presonal reference retrieval