add stream write facilities