replace deprecated mimetype