handle compression from server