updated workflow scheduler