pull in the rest of the global routines.
clarify where global_to_stream is coming from