move the proxy strct to its own source file