added custom stream-wrapper