throw exception if dependency is missing