move MIME type registration to a separate program module