factor walkDeps
module-deps like caching scheme