websocket initialization stuff