implement the stream relay locally