added proper check_deps() func