setting up client