switched mime types back to old scheme
added hadling of unknown / missing mimetype (