first protorype of server lag test code