renamed mime to setExtension.