handle client request.