since deps stream is topo-sorted, no need to buffer