setting up the client