remove code of WebRTC to seperate file