added option for uncompressed stream