call the server correctly