fix ugly JPEG extensions
disallow connect