please add assert for `mime_type`