mime type setting improved