fix metapath NPC measure and add ability to print out metapaths