add peerconnection wrapper with api trace