update proxy code