updated client with gzip support