started work on npc routines