refactoring IO-Management to Sink-Pattern