changed do_debug to printf in proxy.c