added USE_PROXY flag