added mime_content_type requirement, obviously for an outdated PHP version