refactor DependencyError