minor fixes, handling missing websocket support of server.