Correct mime engine and metadatas refactoring for #5