return nil when stream is nil on load