added websocket functionality, more to come