added in changes to make it schedule based on the workflow version