add passthru proxy support

also fix some variable naming