sort out deps