added explicit text mimetype detect