add option to uncompress while reading file