merged measurements.php and util.php