addapted read_body to the new mime_class