trying to sort dependencies