data parsing and decompression version 1