tabs -> spaces, add error handler to websocket