optimized the SourceSinkManager