add gzip support to get a better performance