added npc spawning