changes to EnsureTask