add priorities to routing