fixes to mimetype