move computeDependencies to Context