use compression to transfer data to client