recursively check dependencies
check: don't fail if dependency is not there