change raoch to just pass the schedule and the date to scheduler, if we have mre than these two options just pass an object