added streams and pipes