try to sort out dependencies