Do you really need to redefine real_proxy here?