branch for perfroming pref routing