initial proxy code