update workTimes
merge overlapping regions, properly support classes/styles