add dependency hierarchy