better dependency searching