handling data from the client properly for gzdecoding and