complete crc32 check
add buffer check