cleaned the mec
Fix for tempfile (necessary under windows)