move StartedAt to globals