Use a stream stack instead of a single stream, fixes Empty Namespace issue