introduced the 'mime' config option, addresses #3