latency measuring - server side script added