load npcs with improved logic