added check_dependencies