starting on code to communicate with the server