first changes to create client and server