detecting dependencies