minor changes for media type and related with supporting curl