add code to fix old-style tasks