add scheduledAt to ref