added gzip tools
refactor parser