send object to server