added some methods for decompression