use content_type instead of mimetype, which is now deprecated