support pathname for output streams