switch to mime-types. fixes #320