add some helper scripts for dealing with the measurement