events from websocket are validated and converted