adds first pass at communicating with the server