simplify $lastVisit and getLatest() to only pass around timestamps