fixes to make compiler happy. the ServerWebSocket has to be rewrite