mime fixed and rewrited.