improvement: don't use timestamps for definition of focus state