server analysis code