fixup
fixup hadling of mime type