some tinkering with mime types