added npc replace mechanism by using skeletons