modify bits read & write functions in fiodrv & lzw