globals for stream