adding more code to hook up the proxy