first attempt at sending the data from client to server