fix namespace with no stream passed in