copy cas_proxy_callback from pat