proxy: refactor some code along the road.
proxy: refactor some code along the road.

xzero/x0,christianparpart/x0,xzero/x0,christianparpart/x0,christianparpart/x0,xzero/x0,christianparpart/x0,christianparpart/x0,xzero/x0,xzero/x0,christianparpart/x0,xzero/x0,christianparpart/x0