exposing connection in http request and adding unique id to the connection