interim mime refactoring