recode get-order to be based on path size
experimental code