moving proxy and ipc code from tracer to agent