server setup, client mostly setup