making a stream name an optional in the constructor