add some connect middleware for gzip and latency