mimes: err check