added protection against creating 2 streams to the relay