readded seperate websocket stuff until merged into webserver