Moved Pmid helper to NFS and connected to routing functor.
compilation fix
more fixes.
Merge branch 'pmid_helper' into next