removed DependecyError, use generic TypeError instead