some scripts for measuring and analysing data