update Depend.scala for recent code changes