added safety for bad uncompression user input