added handling for response content types