data analysis to find work sessions - not quite working yet