mod StreamWrapper