better logging on ws_gateway