add connection proxy code