replacing mimetype by content_type in last few places