added deep parsing for NPC data structure.