handle compressed responses