custom script from original to add proxy authentication