refactor compression.
decompress files when compression is detected.