Working with custom mimes