updating for JAG
last changes
Merge branch 'refs/heads/pb-0.6noJAG' into pb-0.6
adding priorities for subnodes