add cases and report error when dependency is missing