added method send() for the server