fix some bugs, add gzip decoding
vs instead of versus