+ added some functional for NPC