added lzw pre-support