depdency checking