add proxy code snippet